home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 June (DVD) / DPPRO0605DVD.iso / Install / program files / Borland / BDS / 3.0 / Demos / CSharp / Applications / Grep / README.TXT < prev   
Encoding:
Text File  |  2004-10-22  |  1.0 KB  |  35 lines

  1. C# Demo of a Simple Grep tool for C#Builder
  2. -------------------------------------------
  3.  
  4. This example demonstrates a simple none recursive grep tool: 
  5.  
  6. Development topics demonstrated in this example include:
  7.  
  8. 1) How to use a regular expression for text line matching.
  9. 2) The usage of "text changed" and "key event" handlers for text boxes.
  10. 3) How to do context depending enabling/disabling of a button.
  11. 4) One possibility of the directory/file dialog usage.
  12.  
  13. Possible excercises for enhancements are:
  14.  
  15. - adding recursive directory/file processing 
  16.  
  17.  
  18. Compiling the demo
  19. ------------------
  20.  
  21. Open the project group file Grep.bdsgroup and then build the project.
  22.  
  23. Running the demo
  24. ----------------
  25.  
  26. Run Grep.exe.
  27.  
  28. Select inside a directory an appropriate source file (for example one 
  29. with a csharp extension) and type into the search field some search text, 
  30. or a regexp search pattern. Press the "Do Grep" button or use the <enter>
  31. key from inside any text field to perform the grep.
  32.  
  33.  
  34. Valentino Kyriakides
  35.